package cn.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class TextPaper {
    //一页几行，一行几个字
    private int lines;
    private int words;

    public void print(String s){
        System.out.println("使用的纸张是：");
        System.out.println("一行"+words+"字，一页"+lines+"行");
        System.out.println("打印的内容是："+s);
    }
    public void setLines(int lines) {
        this.lines = lines;
    }

    public void setWords(int words) {
        this.words = words;
    }
}
